import Mock from "mockjs"
const homeData = Mock.mock([
  {
    name: '商品管理',
    permiss: '1',
    area: 'goods'
  },
  {
    name: '订单管理',
    permiss: '2',
    area: 'permiss'

  },
  {
    name: '添加管理',
    permiss: '3',
    area: 'right'
  },
  {
    name: '角色列表',
    permiss: '1',
    area: 'roles'
  },
  {
    name: '管理列表',
    permiss: '2',
    area: 'roles'
  },
  {
    name: '删除列表',
    permiss: '3',
    area: 'roles'
  },
  {
    name: '商品列表',
    permiss: '1',
    area: 'roles'
  },
  {
    name: '删除列表',
    permiss: '2',
    area: 'roles'
  },
])

Mock.mock('/home', 'get', () => {
  return homeData
})